home *** CD-ROM | disk | FTP | other *** search
Java Source | 1996-12-10 | 2.3 KB | 62 lines |
- /*
- A basic extension of the java.applet.Applet class
- */
-
- import java.awt.*;
- import java.applet.*;
-
- public class Plane extends Applet {
-
- public void init() {
- super.init();
-
- // Take out this line if you don't use symantec.itools.net.RelativeURL
- symantec.itools.lang.Context.setDocumentBase(getDocumentBase());
-
- //{{INIT_CONTROLS
- setLayout(null);
- addNotify();
- resize(520,80);
- setFont(new Font("Dialog", Font.BOLD, 12));
- setForeground(new Color(0));
- setBackground(new Color(16777215));
- animatorPlane = new symantec.itools.multimedia.Animator();
- animatorPlane.reshape(200,8,128,71);
- add(animatorPlane);
- animatorPlane.setDelay(250);
- animatorPlane.setNumLoops(1);
- animatorPlane.setRepeatMode(true);
- try {
- java.net.URL[] tempURL = new java.net.URL[15];
- tempURL[0] = symantec.itools.net.RelativeURL.getURL("Images/plane01.gif");
- tempURL[1] = symantec.itools.net.RelativeURL.getURL("Images/plane02.gif");
- tempURL[2] = symantec.itools.net.RelativeURL.getURL("Images/plane03.gif");
- tempURL[3] = symantec.itools.net.RelativeURL.getURL("Images/plane04.gif");
- tempURL[4] = symantec.itools.net.RelativeURL.getURL("mages/plane05.gif");
- tempURL[5] = symantec.itools.net.RelativeURL.getURL("Images/plane06.gif");
- tempURL[6] = symantec.itools.net.RelativeURL.getURL("Images/plane07.gif");
- tempURL[7] = symantec.itools.net.RelativeURL.getURL("Images/plane08.gif");
- tempURL[8] = symantec.itools.net.RelativeURL.getURL("Images/plane09.gif");
- tempURL[9] = symantec.itools.net.RelativeURL.getURL("Images/plane10.gif");
- tempURL[10] = symantec.itools.net.RelativeURL.getURL("Images/plane11.gif");
- tempURL[11] = symantec.itools.net.RelativeURL.getURL("Images/plane12.gif");
- tempURL[12] = symantec.itools.net.RelativeURL.getURL("Images/plane13.gif");
- tempURL[13] = symantec.itools.net.RelativeURL.getURL("Images/plane14.gif");
- tempURL[14] = symantec.itools.net.RelativeURL.getURL("Images/plane15.gif");
- animatorPlane.setImageList(tempURL);
- } catch (java.net.MalformedURLException error) {
- }
- animatorPlane.setClearFrame(false);
- animatorPlane.setPreviewMode(true);
- //}}
- }
-
- public boolean handleEvent(Event event) {
- return super.handleEvent(event);
- }
-
- //{{DECLARE_CONTROLS
- symantec.itools.multimedia.Animator animatorPlane;
- //}}
- }
-